define.amd = {jQuery : true};
requirejs.config({
    shim: {
        'jquery': {
            exports: '$'
        }
    },
	paths: {
        'jquery': 'http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min'
	}
});


define(function(require, exports, module) {


	var 
		OAuth = require('jso2'),
		jQuery = require('jquery');

	OAuth.enablejQuery($);

	$(document).ready(function() {

		var o = new OAuth('workday', {
			client_id: "ZmY0MjdiNzQtMTI0Ny00NWMwLWE5NTEtMzg2NzYyYTc1MjMx",
			authorization: "https://i-c3d030f6.workdaysuv.com/baseline/authorize"
		});

		o.callback();

		o.ajax({
			url: "https://i-c3d030f6.workdaysuv.com/ccx/api/v1/baseline/workers?search=logan-mcneil&limit=1",
			dataType: 'json',
			allowia: true,
			success: function(data) {
				console.log("Response (google):");
				console.log(data);
			
			}
		});





	});


});